package com.zto.sch.advance.excel;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * Created by guotao on 2018/11/19.
 *
 * @Description: 单个新增会员
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AddMemberBo implements Serializable{
    
    private static final long serialVersionUID = 225787946841738151L;
    /**
     * 姓名
     */
    private String name;
    /**
     * 手机号
     */
    private String phone;
    /**
     * openId
     */
    private String openId;

    /**
     * appId
     */
    private String appId;
    /**
     * 小程序openId
     */
    private String miniOpenId;
    /**
     * 充值余额
     */
    private String depositAmount;
    /**
     * 赠送余额
     */
    private String giveAmount;
    /**
     * 积分
     */
    private String availablePoint;
    /**
     * 成长值
     */
    private String growth;
    /**
     * 性别
     */
    private String sex;
    /**
     * 生日
     */
    private String birthday;

    /**
     * 所属门店
     */
    private Long homeStoreId;

    /**
     * 标签
     */
    private String tags;
    
    private String idCard;
    private String email;
    private String address;
    private String education;
    private String industry;
    private String hobby;
    private String profession;
    private String income;
    private String channelType;
    private String errorCode;
    private String errorMsg;
    //未能匹配成功的标签名字
    private List<String> errorTag;
    private boolean isPhoneImport = true;

    /**
     * 操作员Id
     */
    private String operatorId;

    public String getPhoneOrOpenId(){
        if(isPhoneImport){
            return phone;
        } else {
            return openId;
        }
    }

    private Long storeId;
    private String importStoreId;



}
